App.module.UserRole.User.Update = Ext.extend(Ext.util.Observable, {
	init: function(grid){
		grid.on('render', function(grid){
			var bt = new Ext.Button({
				tooltip: 'Update'
				,iconCls: 'icon-update-16x16'
				,disabled: true
				,handler: this.showWin	
			}, this);
			grid.getTopToolbar().add(bt);
			grid.selModel.on('selectionchange', function(sm){
				bt.setDisabled(!sm.hasSelection());	
			});
		});	
	}
	,getWin: function(){
		if(this.win) return this.win;
		this.win = new Ext.Window({
			title: 'Update Page'	
		});
		return this.win;
	}
	,showWin: function(bt){
		this.getWin().show(bt.id);
	}
});